package cn.iocoder.yudao.module.scrm.controller.admin.marketing.vo.category;

import cn.iocoder.yudao.framework.mybatis.core.type.JsonLongSetTypeHandler;
import cn.iocoder.yudao.framework.mybatis.core.type.StringListTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.core.util.Json;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 营销分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MarketingCategoryRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16728")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "父级id(顶层默认为0)", example = "15996")
    @ExcelProperty("父级id(顶层默认为0)")
    private Integer parentId;

    @Schema(description = "数据范围(指定部门id数组)-", example = "31781,86,34")
    @ExcelProperty("数据范围(指定部门id数组)")
    private String deptId;


    @ExcelProperty("数据范围(显示部门名称数组)")
    @Schema(description = "数据范围(显示部门名称数组)", example = "赵六")
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> deptName;


    @Schema(description = "分类层级(暂时1,2,3级)")
    @ExcelProperty("分类层级(暂时1,2,3级)")
    private Integer level;

    @Schema(description = "分类名称", example = "赵六")
    @ExcelProperty("分类名称")
    private String name;

    @Schema(description = "营销类型   scrm_marketing_type", example = "1")
    @ExcelProperty("营销类型   scrm_marketing_type")
    private String marketingType;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime createTime;

    @Schema(description = "是否能有下级0能 1不能")
    @ExcelProperty("是否能有下级0能 1不能")
    private String ifLevel;



}